From 72111a89a2a0d5d090f712b7684a6607db01fcb9 Mon Sep 17 00:00:00 2001 From: Maximiliano Curia Date: Tue, 15 May 2018 15:02:16 +0200 Subject: [PATCH] kdirwatch tests method specific Skip the tests that won't work for the current backend Gbp-Pq: Name kdirwatch-tests-method-specific.patch --- autotests/kdirwatch_unittest.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autotests/kdirwatch_unittest.cpp b/autotests/kdirwatch_unittest.cpp index 7dd8a08..62f666a 100644 --- a/autotests/kdirwatch_unittest.cpp +++ b/autotests/kdirwatch_unittest.cpp @@ -836,6 +836,11 @@ void KDirWatch_UnitTest::benchNotifyWatcher() KDirWatch watch; watch.addDir(dir.path(), KDirWatch::WatchSubDirs | KDirWatch:: WatchFiles); + auto method = qgetenv("KDIRWATCH_METHOD"); + if ((method != "INotify") && (method != "QFSWatch")) { + QSKIP("Only works with the inotify and qfswatch backends", SkipSingle); + } + // now touch all the files repeatedly and wait for the dirty updates to come in QSignalSpy spy(&watch, &KDirWatch::dirty); QBENCHMARK { -- 2.30.2